package ${packageName}.service.${moduleName};

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import ${packageName}.dao.entity.${moduleName}.${entity_name};

public interface ${entity_name}Service {

    /**
     * 保存当前对象,并返回主键ID
     *
     * @param ${entity_name_low} ${entity_name}
     */
    void save(${entity_name} ${entity_name_low});

    /**
     * 修改当前对象
     *
     * @param ${entity_name_low} ${entity_name}
     */
    void edit(${entity_name} ${entity_name_low});

    /**
     * 根据主键Id删除数据
     *
     * @param ids 主键集合
     */
    void delete(Integer[] ids);

    /**
     * 根据Id获取当前对象
     *
     * @param id 主键ID
     * @return ${entity_name}
     */
    ${entity_name} find${entity_name}(Integer id);

    /**
     * 分页获取${entity_name}列表
     *
     * @param page Page<${entity_name}>
     * @return PageInfo<${entity_name}>
     */
    PageInfo<${entity_name}> page(Page<${entity_name}> page);

}